package com.wencai.bean;

import java.util.Objects;

/**
 * @author wangpan
 * @date 2023/4/12
 */
public class EffectiveDuizi {
    private String name;
    private Double price;
    private String date;
    private Integer times;
    private String business;
    private Double mount;
    private String effective;

    public EffectiveDuizi(Duizi duizi) {
        this.name = duizi.getName();
        this.price = duizi.getPrice();
        this.date = duizi.getDate();
        this.times = duizi.getTimes();
        this.business = duizi.getBusiness();
        this.mount = duizi.getMount();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public Integer getTimes() {
        return times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    public String getBusiness() {
        return business;
    }

    public void setBusiness(String business) {
        this.business = business;
    }

    public Double getMount() {
        return mount;
    }

    public void setMount(Double mount) {
        this.mount = mount;
    }

    public String getEffective() {
        return effective;
    }

    public void setEffective(String effective) {
        this.effective = effective;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        EffectiveDuizi that = (EffectiveDuizi) o;
        return Objects.equals(name, that.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, price, date, times, business, mount, effective);
    }
}
